<extend name="Layout/index" />

<block name="main">
<div class="container">
<div class="row">
	<form action="<{:U('User/index')}>" method="get">
	<div class="col-lg-4">
		<input type="text" class="form-control input-sm" name="username" placeholder="请输入要查询的用户名">
	</div>
	<!-- <button type="button" class="btn btn-primary">查询</button> -->
	<input type="submit" class="btn btn-primary btn-xs" value="查询" >
	</form>
	<table class="table table-hover" style="text-align:center;font-size:14px;margin-top:15px;">
		<tr>
			<td class="col-md-1">用户ID</td>
			<td class="col-md-1">用户名</td>
			<td class="col-md-1">性别</td>
			<td class="col-md-1">年龄</td>
			<td class="col-md-1">邮箱</td>
			<td class="col-md-1">注册时间</td>
			<td class="col-md-1">经验值</td>
			<td class="col-md-1">状态</td>
			<td class="col-md-2">操作</td>
		</tr>
		<volist name="user" id="vo">
		<tr>
			<td><{$vo.uid}></td>
			<td><{$vo.username}></td>
			<td>
			<if condition="$vo['sex'] eq '1'">男
			<else if condition="$vo['sex'] eq '0'">女
			<else />保密
			</if>
			</td>
			<td><{$vo.age}></td>
			<td><{$vo.email}></td>
			<td><{$vo.regtime|date='Y-m-d',###}></td>
			<td><{$vo.score}></td>
			<td>
			<if condition="$vo['status'] eq 1">正常
			<else />禁用
			</if>
			</td>
			<td>
			<if condition="$vo['status'] eq 1">
			<a href="<{:U('User/stop',array('uid'=>$vo['uid']))}>" class="btn btn-danger btn-xs">禁用</a>
			<else /><a href="<{:U('User/stop',array('uid'=>$vo['uid']))}>" class="btn btn-primary btn-xs">启用</a>
			</if>
			</td>
		</tr>
		</volist>
	</table>
	<div><{$page}></div>
</div></div>

</block>